<?php

/**
 * @Author: wuchenge
 * @Date:   2022-04-08 18:06:11
 * @Email: ligui0506@126.com
 * @Descript:
 */
namespace App\Requests;

class HotRequest extends FormRequest
{
    public function rules()
    {
        return [
            'name' => [
                'required',
                'unique:hot_labels',
            ],

        ];
    }

    public function messages()
    {
        return [
            'name.required' => '100201',
            'name.unique'   => '100203',
        ];
    }

    public $scene = [
        'admin.hot.add' => ['name', 'sort'],
    ];
}
